package basis;

import java.util.Scanner;

/**
 * 求整数2+22+222+2222+22222+...
 * 
 * @author 71936_000
 * 
 */
public class Demo2_Accumnlation {
	public static void main(String[] args) {
		System.out.println("请输入两个数");
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		int j = sc.nextInt();
		int num = 0, y = 0;
		for (int x = 0; x < j; x++) {		//控制加的次数
			y = i + 10 * y;
			num = num + y;
		}
		System.out.println("计算的结果是" + num);
	}

}
